package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @author mjy(此处vo对象用于返回去所有的勋章, won标识用户是否有权限)
 * @date 2021/09/24
 * @description
 */
@ApiModel(value="MedalVo对象", description="")
public class MedalVo {

    @ApiModelProperty(value = "勋章主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "勋章图片")
    private String medalImg;

    @ApiModelProperty(value = "1.步数，2.跑步，3.骑行，4热量")
    private Integer type;

    @ApiModelProperty(value = "勋章的点亮时间类型，1:某日最高，2：累计达到")
    private Integer timeType;

    @ApiModelProperty(value = "达标值")
    private Integer upToStandard;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "描述")
    private String describe;

    @ApiModelProperty(value = "是否展示")
    private Integer show;

    @ApiModelProperty(value = "0:未拥有,1：拥有")
    private Integer own;

    @ApiModelProperty(value = "时间,获得该勋章的时间",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date  obtainTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMedalImg() {
        return medalImg;
    }

    public void setMedalImg(String medalImg) {
        this.medalImg = medalImg;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getTimeType() {
        return timeType;
    }

    public void setTimeType(Integer timeType) {
        this.timeType = timeType;
    }

    public Integer getUpToStandard() {
        return upToStandard;
    }

    public void setUpToStandard(Integer upToStandard) {
        this.upToStandard = upToStandard;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getShow() {
        return show;
    }

    public void setShow(Integer show) {
        this.show = show;
    }

    public Integer getOwn() {
        return own;
    }

    public void setOwn(Integer own) {
        this.own = own;
    }

    public Date getObtainTime() {
        return obtainTime;
    }

    public void setObtainTime(Date obtainTime) {
        this.obtainTime = obtainTime;
    }

    @Override
    public String toString() {
        return "MedalVo{" +
                "id=" + id +
                ", medalImg='" + medalImg + '\'' +
                ", type=" + type +
                ", timeType=" + timeType +
                ", upToStandard=" + upToStandard +
                ", unit='" + unit + '\'' +
                ", describe='" + describe + '\'' +
                ", show=" + show +
                ", own=" + own +
                ", obtainTime=" + obtainTime +
                '}';
    }
}
